package com.gcsoftware;

import com.gcsoftware.web.threads.FileUploadThread;
import com.gcsoftware.web.threads.TokenThread;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;

/**
 * The Main class of your application
 * Created by qs on 2018/3/14.
 */
@EnableCaching
@SpringBootApplication
public class GaffApplication {

    public static void main(String[] args) {
        FileUploadThread thread = new FileUploadThread();
        //thread.setService(SpringContextUtils.getBean(FileUploadService.class));
        thread.start();

        TokenThread token = new TokenThread();
        token.start();

        SpringApplication.run(GaffApplication.class, args);
    }
}
